package com.example.server.mapper;

import com.example.server.entity.Bookshelf;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface BookshelfMapper {

    List<Bookshelf> getBookshelfByUserId(int iduser);

    void addBookToBookshelf(Bookshelf bookshelf);

    void removeBookFromBookshelf(@Param("iduser") int iduser, @Param("idbook") int idbook);

    int isBookInBookshelf(@Param("iduser") int iduser, @Param("idbook") int idbook);
}
